﻿using Microsoft.AspNetCore.Mvc;
using PlatformNetCore.IService;
using PlatformNetCore.Web.Models;

namespace PlatformNetCore.Web.Controllers
{
    public class ErrorController : Controller
    {
        private readonly IPortalService portalService;
        public ErrorController(IPortalService _portalService)
        {
            portalService = _portalService;
        }

        [Route("errors/{code}")]
        [Auth("S001")]
        public IActionResult InternalServerError(int code)
        {
            return View();
        }
    }
}